prog1	BEGIN	0
:LINKER TEST
:Cross File Linking Test, the first five lines of each program should be identical
	HALT
ext11	ADRC	ext11+ext22+ext33+ext44
ext12	ADRC	ext53+ext32-ext41+ext13
ext13	ADRC	ext21*ext51+ext12+ext42
ext14	ADRC	ext31+ext43+ext13+ext54
	EXTRN	ext21
	EXTRN	ext22
	EXTRN	ext23
	EXTRN	ext24
	EXTRN	ext31
	EXTRN	ext32
	EXTRN	ext33
	EXTRN	ext34
	EXTRN	ext41
	EXTRN	ext42
	EXTRN	ext43
	EXTRN	ext44
	EXTRN	ext51
	EXTRN	ext52
	EXTRN	ext53
	EXTRN	ext54 
	AVERT	ext11
	AVERT	ext12
	AVERT	ext13
	AVERT	ext14
:Linker basic relocation test
	ADRC	a+b+c+d
	ADD	a,2
	ADD	%b
a	DEC	1
b	DEC	2
c	DEC	4
d	DEC	8
:Linker basic absolute test
	ADRC	2+4+8+16
	ADD	16
:Linker negative absolutes test
x1	EQU	-10
x2	EQU	14
x3	EQU	-6
x4	EQU	1
	ADRC	x1+x2*x3/x4
	ADRC	16*x1-x4*17
	SUB	x1
:Linker basicxternal test 1
	EXTRN	ext1
	EXTRN	ext2
	EXTRN	ext3
	EXTRN	ext4
	ADRC	-ext1+ext2*ext3+ext4
:Linker external and absolutes test
	ADRC	ext1+x2-x4*3
:Linker externals and negative absolutes test
	ADRC	*-ext3*x3+x2
:Linker boundary cases
	HEX	FFFFFFFF		:-1
	HEX	10000000		:max
	HEX	7FFFFFFF		:min
	FINSH